package com.oracle.application.feign;

import com.oracle.application.feign.vo.CartVo;
import com.oracle.application.feign.vo.OrderConfirmVo;
import com.oracle.application.feign.vo.OrderSbumitVo;
import com.oracle.application.feign.vo.Orderinfo;
import com.oracle.application.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "cloud-orders-service",path = "/orders")
public interface OrdersFeign {

    @GetMapping("/confirm")
    public R<OrderConfirmVo> confirm(List<CartVo> cartVos);
    @PostMapping("/submit")
    public R submit(@RequestBody OrderSbumitVo orderSbumitVo);
}
